<template id="app">
  <el-card shadow="never" class="aui-card--fill">
    <div>
      <el-main>
        <el-row :gutter="20">
          <el-col :span="12">
            <eChart :option="optionsBar" :url="'/static/staticmange/getListDeptByMoth'"/>
          </el-col>
          <el-col :span="12">
            <eChart :option="optionsBars" :url="'/static/staticmange/getListDeptByMothWanNum'"/>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <eChart :option="optionsLine" :height="'440px'" :type="'2'" :url="'/static/staticmange/getListDeptByDay'"/>
        </el-row>
      </el-main>
    </div>
  </el-card>
</template>

<style scoped>
.mod-home {
  line-height: 1.5;
}
</style>
<script setup lang="ts">
import {ref, reactive, onMounted} from 'vue';
import eChart from '../utils/chart.vue'

const optionsBar = {
  title: [
    {
      text: '体系月上单金额统计'
    }
  ],
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {},
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  xAxis: {
    type: 'category',
    data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']

  },
  yAxis: {
    type: 'value'
  },
  series: []
};
const optionsBars = {
  title: [
    {
      text: '体系月用户新增统计'
    }
  ],
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {},
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  xAxis: {
    type: 'category',
    data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']

  },
  yAxis: {
    type: 'value'
  },
  series: []
};
const optionsLine = {
  title: [
    {
      text: '体系用户日上单数量'
    }
  ],
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  "legend": {},
  "tooltip": {
    "trigger": "axis",
    "showContent": false
  },
  "dataset": {
    "source": []
  },
  "xAxis": {
    "type": "category"
  },
  "yAxis": {
    "gridIndex": 0
  },
  "grid": {
    "top": "55%"
  },
  "series": []
}
</script>
